﻿using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Crm;

namespace Konekcija.Core.Reporting.Mappings.Crm
{
    public class AccountsToProductsMap : ClassMap<AccountToProduct>
    {
        public AccountsToProductsMap()
        {
            Schema("crm");
            Table("AccountsToProducts");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.AccountId).Nullable();
            Map(x => x.ProductId).Nullable();

        }
    }
}
